﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using SalonPay.Entity;
using SalonPay.IBLL;
using System.Threading;
namespace SalonPay.ChargeService
{
    public partial class Service1 : ServiceBase
    {
        public Service1()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            FailedChargeService service = new FailedChargeService();

            ThreadStart tStart = new ThreadStart(service.Start);
            Thread chargeThread = new Thread(tStart);
            chargeThread.Start();
        }

        protected override void OnStop()
        {
        }
    }
}
